<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    x:Class="OpenLS.Chart.UI.LegendPropertiesResources"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chart="http://schemas.Kherty.com/office/2007/chart"
    xmlns:chartui="clr-namespace:OpenLS.Chart.UI"
    xmlns:Internals="clr-namespace:OpenLS.Chart.UI.Internals">
    <DataTemplate DataType="{x:Type chart:Legend}">
        <TabControl TabStripPlacement ="Left" chartui:ChartElement.Legend="{Binding}" chartui:ChartElement.ViewModel="{Binding Converter={x:Static Internals:ChartConverters.ViewModelFactory}}">
            <TabItem Header="{x:Static Internals:UIStringTable.SeriesOptions}">
                <StackPanel>
                    <ListBox
                             ItemsSource="{Binding Source={x:Type chart:LegendPosition}, Converter={x:Static Internals:ChartConverters.EnumEnumerator}}"
                            SelectedItem="{Binding Position}" Style="{x:Static chartui:EnumResources.EnumListBoxStyle}">
                    </ListBox>
                    <CheckBox IsChecked="{Binding Overlay}" Content="{x:Static Internals:UIStringTable.Overlay}"/>
                </StackPanel>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.Fill}">
              <!--  <ContentControl Content="{Binding}" ContentTemplate="{x:Static chartui:ShapedPropertiesResources.FillPropertiesTemplate}"/> -->
                <ContentControl Content="{Binding Path=(chartui:ChartElement.ViewModel).FillFormatter, RelativeSource={RelativeSource Self}}" />

            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.BorderColor}">
                <ContentControl Content="{Binding Path=(chartui:ChartElement.ViewModel).LineFillFormatter, RelativeSource={RelativeSource Self}}" />

            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.BorderStyles}">
                <ContentControl Content="{Binding Path=(chartui:ChartElement.ViewModel).LineStyleFormatter, RelativeSource={RelativeSource Self}}" />
            </TabItem>
        </TabControl>
    </DataTemplate>
    
</ResourceDictionary>